package com.micai.springboot.service;

import com.baomidou.mybatisplus.service.IService;
import com.github.pagehelper.Page;
import com.micai.springboot.dto.UserDto;
import com.micai.springboot.entity.UserEntity;
import io.swagger.models.auth.In;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

/**
 * 描述：
 * <p>
 * Author: 赵新国
 * Date: 2017/10/24 18:03
 */
public interface UserService extends IService<UserEntity> {

    List<UserDto> listUsers(String userName);

    Page<UserDto> getUserByPage(int pageNum, int pageSize, String searchParam, String startDate, String endDate);

    UserDto save(UserDto userDto);

    Integer update(UserDto userDto);

    UserDto getUserById(Long id);

    void delete(UserDto userDto);

    UserDto login(String username, String password);

    UserDto getUserByParam(String username);

    Integer getPermissionCountById(Long id);

    UserDto findByUserName(String username);

    boolean lockBatchIds(List<String> ids);

    boolean resetBatchIds(List<String> ids);

    boolean unlockBatchIds(List<String> ids);

    List<UserDto> list();
}
